Skip to content

Commit b9ff160

Browse files
authored
Fix n+1 query (#6549)
1 parent 2e7d2aa commit b9ff160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kitsune/flagit/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def moderate_content(request):
193193
product_slug=product_slug,
194194
)
195195
.select_related("content_type", "creator", "assignee")
196-
.prefetch_related("content_object__product")
196+
.prefetch_related("content_object__product", "content_object__tags")
197197
)
198198

199199
if request.method == "POST":

0 commit comments

Comments
 (0)